package com.dyh.quickdemo.demos.chp3;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sun.corba.se.spi.ior.ObjectId;
import lombok.*;


import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class News {
    private @NonNull String title;
    private @NonNull String content;
    private @NonNull Date publishedOn;
    private @NonNull String category;
    private @NonNull String author;
}

